<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.selectWidth2{
   width:205px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td class="t_bar2" colspan="6">基本信息
		</td>
		</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="5">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" required class="input_css required maxlength:100"  style="width: 680px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right" width="20%"><span class="color_red">*</span>项目实施地点：</td>
		<td  colspan="2" width="30%">
			<input name="proposal/address" label="项目实施地点" type="text" required class="input_css required "  maxlength="100" value="<x:out select="$xmlData/data/proposal/address" />"/> 
		</td>
		<td align="right" width="20%"><span class="color_red">*</span>指南代码：</td>
		<td  valign="middle" colspan="2" width="30%">
		<input name="proposal/guide_code" value="<x:out select="$xmlData/data/proposal/guide_code" />" class="required" maxlength="100" label="指南代码" />
		</td>
	</tr>
	<tr>
	<td  align="right" nowrap><span class="color_red">*</span>项目开始时间：</td>
	<td colspan="2">
		<c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
		<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="required date  dateCompare:end_date" label="项目开始时间" ></cpt:date> 
	</td>
	<td  align="right" nowrap><span class="color_red">*</span>项目结束时间：</td>
	<td colspan="2">
		<c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
		<cpt:date id="end_date" name="proposal/end_date" className="required date" label="项目结束时间"  value="${end_date}" ></cpt:date> 
	</td>
	</tr>
	<tr>
		<td  align="right" nowrap><span class="color_red">*</span>所属技术领域：</td>
		<td  colspan="5">
			<c:set var="technology"><x:out select="$xmlData/data/proposal/technology_value" /></c:set>
			<label><input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="电子与信息" value="01" /><span style="vertical-align: middle;">电子与信息</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="生物技术与新医药" value="02" /><span style="vertical-align: middle;">生物技术与新医药</span></label> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="新型材料" value="03" /><span style="vertical-align: middle;">新型材料</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="光机电一体化" value="04" /><span style="vertical-align: middle;">光机电一体化</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="新能源与高效节能" value="05" /><span style="vertical-align: middle;">新能源与高效节能</span></label><br/>
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="环境与资源利用" value="06" /><span style="vertical-align: middle;">环境与资源利用</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="航空航天" value="07" /><span style="vertical-align: middle;">航空航天</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="现代交通" value="08" /><span style="vertical-align: middle;">现代交通</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="地球、空间及海洋工程" value="09" /><span style="vertical-align: middle;">地球、空间及海洋工程</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="核技术应用" value="10" /><span style="vertical-align: middle;">核技术应用</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="其他" value="11" /><span style="vertical-align: middle;">其他</span></label>
			<input type="hidden" id="technology_value" name="proposal/technology_value" class="required" value="${technology}" label="所属技术领域">
			<input type="hidden" name="proposal/technology_name" value="<x:out select="$xmlData/data/proposal/technology_name" />">
		</td>
	</tr>
	<tr>
		<td align="right" ><span class="color_red">*</span>项目所属产业：</td>
		<td  colspan="5">
		<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set> 
		<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox> 
		<input type="hidden" id="industry_value" name="proposal/industry_value"
			class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name"
			value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>原有研发机构名称<br/>（填最高级次研发机构名称）：</td>
	<td colspan="5"><input name="proposal/original_name" label="原有研发机构名称" type="text" required class="input_css required "  maxlength="100" value="<x:out select="$xmlData/data/proposal/original_name" />"/> </td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>原有研发机构所属级次：</td>
	<td nowrap  colspan="2" valign="middle">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="level" label="国家级" value="01" /><span style="vertical-align: middle;">国家级</span></label> 
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="level" label="省级" value="02" /><span style="vertical-align: middle;">省级</span></label> 
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="level" label="市级" value="03" /><span style="vertical-align: middle;">市级</span></label>
    <input type="hidden" name="proposal/level_value" id="level_value" class="required" value="<x:out select="$xmlData/data/proposal/level_value" />" label="原有研发机构所属级次" /> 
	<input type="hidden" name="proposal/level_name" id="level_name" value="<x:out select="$xmlData/data/proposal/level_name" />" /></td>
	<td  align="right"  nowrap><span class="color_red">*</span>项目核准或备案文号：</td>
	<td  colspan="2">
	<input type="text" name="proposal/project_approval" label="项目核准或备案文号" class="input_css required" class="required" maxlength="50" value="<x:out select="$xmlData/data/proposal/project_approval"/>" />
	</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>研发机构现有独立面积（㎡）：</td>
	<td nowrap  colspan="2" valign="middle">
	<input type="text" name="proposal/independent_area" label="研发机构现有独立面积" class="input_css required" class="required" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/independent_area"/>" />
	</td>
	<td  align="right"  nowrap><span class="color_red">*</span>研发机构性质：</td>
	<td nowrap  colspan="2" valign="middle">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="nature" label="独立法人" value="01" /><span style="vertical-align: middle;">独立法人</span></label> 
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="nature" label="非独立法人" value="02" /><span style="vertical-align: middle;">非独立法人</span></label> 
    <input type="hidden" name="proposal/nature_value" id="nature_value" class="required" value="<x:out select="$xmlData/data/proposal/nature_value" />" label="研发机构性质" /> 
	<input type="hidden" name="proposal/nature_name" id="nature_name" value="<x:out select="$xmlData/data/proposal/nature_name" />" /></td>
	</tr>
	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申请日期：</td>
		<td colspan="5">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申请日期"></cpt:date> 
		</td>
	</tr>
	<tr>
		<td class="t_bar2" colspan="6"><span class="color_red">*</span>人员构成情况</td>
	</tr>
	<tr>

		<td align="right">研发机构总人数：</td>
		<td colspan="2"><input name="proposal/staff_total"  id="staff_total"   type="text" 
			class="input_css required" style="text-align: right" label="人员构成情况-->研发机构总人数"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="setPre();setPre2();"
			value="<x:out select="$xmlData/data/proposal/staff_total" />" /></td>
		<td align="right" colspan="2" >其中本科以上学历者占研发机构总人数的比例（%）：</td>
		<td colspan="2">
		<input name="proposal/junior_college_pre_pre" 
		label="100%" id="junior_college_pre_pre" value='100' type="hidden">
		<input name="proposal/junior_college_pre"  id="junior_college_pre"   type="text" 
			class="input_css  gray valueCompare:junior_college_pre:junior_college_pre_pre" style="text-align: right"  disabled
			onfocus="InitInput.setNumber(this,9,2,2)" label="人员构成情况-->其中本科以上学历者占研发机构总人数的比例"
			value="<x:out select="$xmlData/data/proposal/junior_college_pre" />" /></td>
	</tr>
	<tr>

		<td align="right">研发人数：</td>
		<td><input name="proposal/teach_staff"  id="teach_staff"   type="text"  label="人员构成情况-->研发人数"
			class="input_css valueGreatEqual:staff_total:teach_staff required" style="text-align: right"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="setPre();"
			value="<x:out select="$xmlData/data/proposal/teach_staff" />" /></td>
		<td align="right" nowrap>占研发机构总人数的比例（%）：</td>
		<td><input name="proposal/teach_staff_pre"  id="teach_staff_pre"   type="text" 
			class="input_css gray valueCompare:teach_staff_pre:junior_college_pre_pre"  disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,2,2)" label="人员构成情况-->占研发机构总人数的比例"
			value="<x:out select="$xmlData/data/proposal/teach_staff_pre" />" /></td>
		<td align="right" >其中：本科以上人数：</td>
		<td><input name="proposal/undergraduate_up"  id="undergraduate_up"   type="text" 
			class="input_css required valueCompare:undergraduate_up:teach_staff"  style="text-align: right"
			onfocus="InitInput.setNumber(this,9,0,0)" label="人员构成情况-->其中：本科以上人数"
			value="<x:out select="$xmlData/data/proposal/undergraduate_up" />" /></td>
		
	</tr>

	<tr>
		<td align="center" rowspan="2">人员学历构成</td>
		<td align="center" colspan="2">本科</td>
		<td align="center" colspan="2">硕士</td>
		<td align="center">博士</td>
	</tr>
	<tr align="center">
		<td colspan="2">
		<input name="proposal/edu_total" id="edu_total" type="hidden" label="人员学历构成" value="<x:out select="$xmlData/data/proposal/edu_total" />"/>
		<input name="proposal/undergraduate" id="undergraduate" type="text" 
			class="input_css required" style="text-align: right" label="人员学历构成-->本科"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','undergraduate,master,doctor','edu_total');setPre2();"
			value="<x:out select="$xmlData/data/proposal/undergraduate" />" /></td>
		<td colspan="2"><input name="proposal/master" id="master" type="text" 
			class="input_css required" style="text-align: right" label="人员学历构成-->硕士"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','undergraduate,master,doctor','edu_total');setPre2();"
			value="<x:out select="$xmlData/data/proposal/master" />" /></td>
		<td ><input name="proposal/doctor" id="doctor"  type="text" 
			class="input_css required" style="text-align: right" label="人员学历构成-->博士"
			onfocus="InitInput.setNumber(this,9,0,0)"
		    onchange="countNum('','undergraduate,master,doctor','edu_total');setPre2();"
			value="<x:out select="$xmlData/data/proposal/doctor" />" /></td>
	</tr>

	<tr>
		<td align="center" rowspan="2">人员职称构成</td>
		<td align="center" colspan="2">初级</td>
		<td align="center" colspan="2">中级</td>
		<td align="center">高级</td>
	</tr>
	<tr align="center">

		<td colspan="2">
		<input name="proposal/assistant_total" id="assistant_total" label="人员职称构成总数" type="hidden" value="<x:out select="$xmlData/data/proposal/assistant_total" />"/>
		<input name="proposal/assistant_level"  id="assistant_level"   type="text" 
			class="input_css valueCompare:assistant_total:staff_total required" style="text-align: right" label="人员职称构成-->初级"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','assistant_level,middle_level,high_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/assistant_level" />" /></td>
		<td colspan="2"><input name="proposal/middle_level"  id="middle_level"   type="text" 
			class="input_css required" style="text-align: right" label="人员职称构成-->中级"
			onfocus="InitInput.setNumber(this,9,0,0)"
			onchange="countNum('','assistant_level,middle_level,high_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/middle_level" />" /></td>
		<td ><input name="proposal/high_level"  id="high_level"   type="text" 
			class="input_css required" style="text-align: right"
			onfocus="InitInput.setNumber(this,9,0,0)" label="人员职称构成-->高级"
			onchange="countNum('','assistant_level,middle_level,high_level','assistant_total');"
			value="<x:out select="$xmlData/data/proposal/high_level" />" /></td>
	</tr>
	<tr>
		<td class="t_bar2" colspan="6">近三年研发设备投入情况（包括研发用软件）</td>
	</tr>
	<tr>
		<td  align="right"><span class="color_red">*</span>新增研发设备、软件总数（台/套）：</td>
		<td  colspan="2">
			<input name="proposal/equipment_num" label="新增研发设备、软件总数" type="text" required class="input_css required " style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/equipment_num" />"/> 
		</td>
		<td align="right" ><span class="color_red">*</span>新增研发设备、软件原价总额（万元）：</td>
		<td  valign="middle" colspan="2">
		<input name="proposal/equipment_price" value="<x:out select="$xmlData/data/proposal/equipment_price" />" class="required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" label="新增研发设备、软件原价总额" />
		</td>
	</tr>
	<tr>
		<td class="t_bar2" colspan="6">申报项目资金情况（金额单位：万元）</td>
	</tr>
	<tr>
	<td   align="right">实际完成投资总额：</td>
	<td  colspan="2">
	<input  name="proposal/xmjhtzze" id="xmjhtzze" label="实际完成投资总额" type="text"  class="input_css  gray valueGreatEqual:xmjhtzze:bank_total" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/xmjhtzze" />"/> 
	</td>
	<td   align="right" nowrap>申请金额：</td>
	<td  colspan="2">
	<input  name="proposal/sqje" id="sqje" class="gray " disabled label="申请金额" type="text"  class="input_css " style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/sqje" />"/> 
	</td>
	</tr>
	<tr>
	<td  align="right"  nowrap>项目类别：</td>
	<td colspan="5"><x:out select="$xmlData/data/proposal/grant_name" /></td> 
	</tr>
	<tr>
	<td  align="right">支持方式：</td>
		<td  colspan="2">
			<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
		
		<td  align="right">资金级次：</td>
		<td colspan="2">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right" nowrap>归口管理部门：</td>
		<td  colspan="2"><span name="proposal/org_name">无锡市科学技术局</span> </td>
	    <td  align="right">管理类别：</td>
		<td  colspan="2">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
		
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="5">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
	</tr>
	<tr>
	<td colspan="6" class="t_bar2">申请资助依据条款
	</tr>
	 <tr>
		<td colspan="6">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<p style="color: red;">备注：表“三、项目基本情况”中“实际完成投资总额”是指项目实施期内的实际投入资金。 </p>
<div class="t_bar">
	<span class="color_red">*</span>近三年主要科研成果应用情况
</div>
	<table  id="tblachievements" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="16%">成果名称</th>
						<th class="TblHead" align="center"  width="11%">证书号</th>
						<th class="TblHead" align="center"  width="8%">是否自主研发</th>
						<th class="TblHead" align="center"  width="15%">应用产品名称</th>
						<th class="TblHead" align="center"  width="10%">上年度销售额（万元）</th>
						<th class="TblHead" align="center"  width="10%">占上年度企业销售收入的比例（%）</th>
						<th class="TblHead" align="center"  width="10%">上年度利润（万元）</th>
						<th class="TblHead" align="center"  width="10%">占利润总额的比例（%）</th>
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td>&nbsp;
							<input type="radio" class="radiobutton" name="selachievements" >
						</td>
						<td align="center">
							<span name="achievements|achievement[0]@seq_no" >[index]</span> 
						</td>
						<td>
							<input type="text"  maxlength="100" name="achievements|achievement[0]|achievement_name" label="科技成果名称" value="" class="required input_css" style="width: 80%;"/>
						</td>
						<td align="center">
							<input type="text"  maxlength="50" name="achievements|achievement[0]|achievement_prono"  label="证书号" value="" class="required input_css" style="width: 80%;"/>
						</td>
						<td align="center">
							 <cpt:select id="research[index]" key="boolean"  name="research" onChange="initControlValue(this.id);" style="width:80%"></cpt:select>
					         <input type="hidden" name="achievements|achievement[0]|research_value" class="required" label="是否自主研发" value=""/>
					         <input type="hidden" name="achievements|achievement[0]|research_name" value=""/>
						</td>
						<td align="center">
							<input type="text"  maxlength="50"  name="achievements|achievement[0]|product_name" label="应用产品名称" value="" class="required input_css" style="width: 80%;"/>
						</td>
						<td align="center">
							<input type="text"  name="achievements|achievement[0]|sales" label="上年度销售额" value="" onfocus="InitInput.setNumber(this,9,4,2)" class="required input_css" style="width: 80%;text-align: right;" onchange="setAchievement()"/>
						</td>
						<td align="center">
							<input type="text"  name="achievements|achievement[0]|sales_rate" label="占上年度企业销售收入的比例" value="" onfocus="InitInput.setNumber(this,9,2,2)" class="required input_css" style="width: 80%;text-align: right;"/>
						</td>
						<td align="center">
							<input type="text"  name="achievements|achievement[0]|profit" label="上年度利润" value="" onfocus="InitInput.setNumber(this,9,4,2)" class="required input_css" style="width: 80%;text-align: right;" onchange="setAchievement()"/>
						</td>
						<td align="center">
							<input type="text"  name="achievements|achievement[0]|profit_rate" label="占利润总额的比例" value="" onfocus="InitInput.setNumber(this,9,2,2)" class="required input_css" style="width: 80%;text-align: right;"/>
						</td>
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/achievements/achievement" var="achievement">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selachievements" >
						</td>
						<td align="center">
							<span   name="achievements/achievement[${flag}${index}]@seq_no" ><x:out select="$achievement/@seq_no"/></span> 
						</td>
						<td>
							<input type="text"  maxlength="100" name="achievements/achievement[${flag}${index}]/achievement_name" label="成果名称" value="<x:out select="$achievement/achievement_name"/>" class="required input_css" style="width: 80%;"/>
						</td>
						<td align="center">
							<input type="text"  maxlength="50" name="achievements/achievement[${flag}${index}]/achievement_prono"  label="证书号" value="<x:out select="$achievement/achievement_prono"/>" class="required input_css" style="width: 80%;"/>
						</td>
						<td align="center">
						    <c:set var="research_value"><x:out select="$achievement/research_value" /></c:set>
							<cpt:select id="research${index}" key="boolean" name="research" onChange="initControlValue(this.id);" value="${research_value }" style="width:80%"></cpt:select>
				            <input type="hidden" name="achievements/achievement[${flag}${index}]/research_value" class="required" label="是否自主研发" value="<x:out select="$achievement/research_value" />"/>
				            <input type="hidden" name="achievements/achievement[${flag}${index}]/research_name" value="<x:out select="$achievement/research_name" />"/>
						</td>
						<td align="center">
							<input type="text" maxlength="50"  name="achievements/achievement[${flag}${index}]/product_name" label="应用产品名称" value="<x:out select="$achievement/product_name"/>" class="required input_css" style="width: 80%;"/>
						</td>
						<td align="center">
							<input type="text"  name="achievements/achievement[${flag}${index}]/sales" label="上年度销售额" value="<x:out select="$achievement/sales"/>" onfocus="InitInput.setNumber(this,9,4,2)" class="required input_css" style="width: 80%;text-align: right;" onchange="setAchievement()"/>
						</td>
						<td align="center">
							<input type="text"  name="achievements/achievement[${flag}${index}]/sales_rate" label="占上年度企业销售收入的比例" value="<x:out select="$achievement/sales_rate"/>" onfocus="InitInput.setNumber(this,9,2,2)" class="required input_css" style="width: 80%;text-align: right;"/>
						</td>
						<td align="center">
							<input type="text"  name="achievements/achievement[${flag}${index}]/profit" label="上年度利润" value="<x:out select="$achievement/profit"/>" onfocus="InitInput.setNumber(this,9,4,2)" class="required input_css" style="width: 80%;text-align: right;" onchange="setAchievement()"/>
						</td>
						<td align="center">
							<input type="text"  name="achievements/achievement[${flag}${index}]/profit_rate" label="占利润总额的比例" value="<x:out select="$achievement/profit_rate"/>" onfocus="InitInput.setNumber(this,9,2,2)" class="required input_css" style="width: 80%;text-align: right;"/>
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
					</table>
					<table  cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" >
					<tr align="center">
					<td align="center" width="10%">合计</td>
					<td width="16%">/</td>
					<td width="11%">/</td>
					<td width="8%">/</td>
					<td width="15%">/</td>
					<td width="10%"><input  name="achievements/total_sales" id="total_sales" class="gray " disabled  type="text" style="width:80%;text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/achievements/total_sales" />"/> </td>
					<td width="10%">/</td>
					<td width="10%"><input  name="achievements/total_profit" id="total_profit" class="gray " disabled  type="text" style="width:80%;text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/achievements/total_profit" />"/> </td>
					<td width="10%">/</td>
					</tr>
					</table>
					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblachievements',99,'近三年主要科研成果应用情况最多只能填写99条')){addNewRow('tblachievements');showDateTag('tblachievements');setAchievement()}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblachievements','selachievements')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblachievements','selachievements')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblachievements','条科研成果应用情况');setAchievement();">
					</td></tr>
	</table>
<br/>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="org1">
	<tr>
		<td class="t_bar2" colspan="4">合作单位信息1</td>

	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1"
			style="display: none">*</span>单位名称：</td>
		<td colspan="3"><input name="proposal/org_name1" label="合作单位信息1"
			type="text" class="input_css " onchange="cydw('org1');"
			style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/org_name1" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2"
			style="display: none">*</span>单位地址：</td>
		<td colspan="3"><input name="proposal/address1"
			label="合作单位信息1-->地址" type="text" class="input_css "
			onchange="cydw('org1');" style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/address1" />" /></td>
	</tr>
	<tr>
		<td width="14%" align="right"><span class="color_red" id="color3"
			style="display: none">*</span>注册类型：</td>
		<td width="38%" align="left" colspan="1"><c:set var="nature1">{'id':'<x:out
					select="$xmlData/data/proposal/nature1_code" />','name':'<x:out
					select="$xmlData/data/proposal/nature1_name" />'}</c:set> <cpt:tree
				key="nature_type" cacheable="false" className="hn_iuput_kuang gray"
				readonly="true" value="${nature1}" label="合作单位信息1-->注册类型"
				id="nature1" showPattern="current" shieldPattern="0"
				topCheckbox="false" onClick="initTreeValue2" /> <input
			id="nature1_code" type="hidden" name="proposal/nature1_code" class=""
			label="合作单位信息1-->注册类型"
			value="<x:out select="$xmlData/data/proposal/nature1_code" />" /> <input
			id="nature1_name" type="hidden" name="proposal/nature1_name"
			value="<x:out select="$xmlData/data/proposal/nature1_name" />" /></td>
		<td align="right"><span class="color_red" id="color4"
			style="display: none">*</span>组织机构代码：</td>
		<td><input name="proposal/org_no1" label="合作单位信息1-->组织机构代码"
			type="text" class="input_css " onchange="cydw('org1');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/org_no1" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color5"
			style="display: none">*</span>联系人：</td>
		<td><input name="proposal/lxr_name1" label="合作单位信息1-->联系人姓名"
			type="text" class="input_css " onchange="cydw('org1');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/lxr_name1" />" /></td>
		<td align="right"><span class="color_red" id="color6"
			style="display: none">*</span>电话：</td>
		<td><input name="proposal/lxr_tel1" label="合作单位信息1-->联系人电话"
			type="text" class="input_css " onchange="cydw('org1');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/lxr_tel1" />" /></td>
	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="org2">
	<tr>
		<td class="t_bar2" colspan="4">合作单位信息2</td>

	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1"
			style="display: none">*</span>单位名称：</td>
		<td colspan="3"><input name="proposal/org_name2" label="合作单位信息2"
			type="text" required class="input_css " onchange="cydw('org2');"
			style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/org_name2" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2"
			style="display: none">*</span>单位地址：</td>
		<td colspan="3"><input name="proposal/address2"
			label="合作单位信息2-->地址" type="text" required class="input_css "
			onchange="cydw('org2');" style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/address2" />" /></td>
	</tr>
	<tr>
		<td width="14%" align="right"><span class="color_red" id="color3"
			style="display: none">*</span>注册类型：</td>
		<td width="38%" align="left" colspan="1"><c:set var="nature2">{'id':'<x:out
					select="$xmlData/data/proposal/nature2_code" />','name':'<x:out
					select="$xmlData/data/proposal/nature2_name" />'}</c:set> <cpt:tree
				key="nature_type" cacheable="false" className="hn_iuput_kuang gray"
				readonly="true" value="${nature2}" label="合作单位信息2-->注册类型"
				id="nature2" showPattern="current" shieldPattern="0"
				topCheckbox="false" onClick="initTreeValue2" /> <input
			id="nature2_code" type="hidden" name="proposal/nature2_code" class=""
			label="合作单位信息2-->注册类型"
			value="<x:out select="$xmlData/data/proposal/nature2_code" />" /> <input
			id="nature2_name" type="hidden" name="proposal/nature2_name"
			value="<x:out select="$xmlData/data/proposal/nature2_name" />" /></td>
		<td align="right"><span class="color_red" id="color4"
			style="display: none">*</span>组织机构代码：</td>
		<td><input name="proposal/org_no2" label="合作单位信息2-->组织机构代码"
			type="text" class="input_css " onchange="cydw('org2');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/org_no2" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color5"
			style="display: none">*</span>联系人：</td>
		<td><input name="proposal/lxr_name2" label="合作单位信息2-->联系人姓名"
			type="text" class="input_css " onchange="cydw('org2');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/lxr_name2" />" /></td>
		<td align="right"><span class="color_red" id="color6"
			style="display: none">*</span>电话：</td>
		<td><input name="proposal/lxr_tel2" label="合作单位信息2-->联系人电话"
			type="text" class="input_css " onchange="cydw('org2');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/lxr_tel2" />" /></td>
	</tr>
</table>
<br/>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo3"
	cellspacing="1">
	
<tr>		<td colspan="8" class="t_bar2">人员信息</td></tr>
	
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>
<script type="text/javascript">
function setPre(){
	var  teach_staff=$("#teach_staff").val();
    var staff_total=$("#staff_total").val();
    $("#teach_staff_pre").val(formatVal(teach_staff*100/staff_total));
}
function setPre2(){
	var  edu_total=$("#edu_total").val();
    var  staff_total=$("#staff_total").val();
    if(staff_total==''){
    	$("#junior_college_pre").val("0.00");
    }else{
    $("#junior_college_pre").val(formatVal(edu_total*100/staff_total));
    }
}
function setAchievement(){
	var count1 =0;
	var count2 =0;
	
	$("#tblachievements tr:gt(1)").each(function(){
		var fund1 = $(this).children().eq("6").children().val();
		var fund2 = $(this).children().eq("8").children().val();
		if(!$.isNumeric(fund1)) fund1 =0;
		if(!$.isNumeric(fund2)) fund2 =0;
		count1 = parseFloat(fund1) + parseFloat(count1);
		count2 = parseFloat(fund2) + parseFloat(count2);
	});
	$("#total_sales").val(formatVal2(count1));
	$("#total_profit").val(formatVal2(count2));
}

</script>